package org.example.Server.mapper.resource;

import org.apache.ibatis.annotations.Mapper;
import org.example.Server.model.resource.*;

import java.util.List;

@Mapper
public interface ResourceMapper {
    /**
     * 教师个人资源
     *
     * @param techId
     * @param resourceType
     * @return
     */
    List<ResourceVO> getRePersonList(Integer techId, String resourceType);

    List<VideoVO> getVideoByTechid(Integer techId, Integer ispass);

    boolean addResource(Resource resourceDTO);

    boolean updateResource(ResourceDTO resourceDTO);

    boolean deleteResource(Integer resourceId);

    void addVideo(VideoDTO videoDTO);

//    boolean deleteVideo(Integer videoId);

    boolean updateVideo(VideoDTO videoDTO);

    void addStuResource(StuResource stuResource);

    List<StuReVO> getStuVideoList(Integer userId);

    List<StuReVO> getStuReList(Integer userId, String resourceType);

    void deleteStuResource(List<Integer> ids);
}
